package ad.common
{
	
	/**
	 * distance2D
	 * @version ActionScript 3.0
	 * @author Adrian C. Miranda
	 * @mail ad@adrianmiranda.com.br
	 */
	public function distance2D(x1:Number, y1:Number, x2:Number, y2:Number):Number
	{
		var h:Number = Math.abs(x1 - x2);
		var v:Number = Math.abs(y1 - y2);
		return Math.pow(Math.pow(h, 2) + Math.pow(v, 2), 0.5);
	}
	
}